{
  "properties" : { },
  "id" : "47e99938d751414c89bf83d761691b47",
  "script" : null,
  "groupId" : "4c0c509172534572bbe1809900aeafa9",
  "name" : "型号新增或修改",
  "createTime" : 1727070993426,
  "updateTime" : 1726306031800,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "submit",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\r\n    \"id\": \"\",\r\n    \"deviceModel\": \"ceshi001\",\r\n    \"deviceModelName\": \"嘻嘻嘻ha\",\r\n    \"deviceFirm\": \"2\"\r\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 500,\n    \"success\": false,\n    \"data\": {},\n    \"msg\": \"系统维护中，请稍后重试。\"\n}",
  "description" : "",
  "requestBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  },
  "responseBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  }
}
================================
if(body.id==null || body.id==''){
  return  db.table('ndmp_net_device_model_info').primary('id',IdUtil.getSnowflakeNextId()).save(body,false);
}
return db.table('ndmp_net_device_model_info').primary('id').update(body,false);